package com.houxiurong.service.impl;

import com.houxiurong.dao.BlogDao;
import com.houxiurong.entity.Blog;
import com.houxiurong.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("blogService")
public class BlogServiceImpl implements BlogService {

    @Autowired
    private BlogDao blogDao;

    @Override
    public List<Blog> getBlogArchive() {
        return blogDao.getBlogArchive();
    }

    @Override
    public List<Blog> getBlogArticle() {
        return blogDao.getBlogArticle();
    }

    @Override
    public List<Blog> searchBlog(String searchParam) {
        return blogDao.searchBlog(searchParam);
    }

}
